package com.mobi.spring1.dao;

import com.mobi.spring1.pojo.Login;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface LoginDao extends JpaRepository<Login,Integer> {
    //@Query("select l.password from com.mobi.spring1.pojo.Login l where l.username=:username")
    Login findByUsername(String username);

}
